package com.dunjx.user.feign;


import com.dunjx.user.pojo.User;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="user")
@RequestMapping(value = "/user")
public interface UserFeign {

    @GetMapping( "/findByUsername/{username}")
    public Result<User> findByUsername(@PathVariable("username")String username) ;
}